﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using WebApplication3.Services;

namespace WebApplication3.Controllers
{
	[Route("api/sf")]
	[ApiController]
	public class SFOrderController : ControllerBase
	{
		private readonly SFOrderService _sFOrderService;

		public SFOrderController(SFOrderService sFOrderService)
		{
			this._sFOrderService = sFOrderService;
		}
		[Route("c")]
		public async Task<string> CancelAsync( int orderid,string reason) {

			return await _sFOrderService.CancelAsync(orderid, reason);


		}
    }
}